package com.guanzhi.fusionMybatis.service.impl;

import com.guanzhi.fusionMybatis.mapper.UserMapper;
import com.guanzhi.fusionMybatis.po.User;
import com.guanzhi.fusionMybatis.service.UserService;
import lombok.AllArgsConstructor;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * Spring Boot
 * <p> Package: com.guanzhi.fusionMybatis.service.impl </p>
 * <p> File: UserServiceImpl.java </p>
 * <p> Description:  (业务逻辑层)</p>
 * <p> Date: 2024/1/24 22:11</p>
 *
 * @author 观之
 * @version 1.0 （代码版本）
 * @email <a href="mailto:guanzhi55634@aliyun.com">观之</a>（邮箱）
 * @date 2024/1/24 21:54
 * @since jdk17（jdk版本）
 */
@Service
@AllArgsConstructor
public class UserServiceImpl implements UserService {

    private final UserMapper userMapper;

    @Override
    public User findById(Long id) {
        return userMapper.findById(id);
    }
}
